import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'amfe-flexible'

// 测试用接口
import { testAPI } from '@/api'
import {
  Card,
  Icon,
  NavBar,
  Form,
  Field,
  Button,
  Tabbar,
  TabbarItem,
  Search,
  Tab,
  Tabs,
  IndexBar,
  IndexAnchor,
  Tag
  , Sticky
  , Swipe, SwipeItem
  , Lazyload
} from 'vant'

Vue.use(Lazyload)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Sticky)
Vue.use(Card)
Vue.use(Tag)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Search)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)

const myFn = async () => {
  const res = await testAPI()
  console.log(res)
}
myFn()

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
